<?php

namespace app\api\controller;

use app\api\model\Beginner;
use app\api\model\Member;
use app\api\model\Travel;
use app\common\controller\Frontend;

class Guide extends Frontend
{
    protected array $noNeedLogin = ['*'];


    public function initialize(): void
    {
        parent::initialize();
    }


    public function getGuideTravel()
    {
       return json((new Travel())->getGuideTravel());
    }


    public function getGuideBeginner()
    {
        return json((new Beginner())->getGuideBeginner());
    }


    public function readGuide(){
        return json((new Travel())->readGuide($this->request_array));

    }
}